package com.acme.bankapp.domain.accounts;

/**
 * 
 * Provides a way to distinguish types of accounts.
 * And a string representation.
 *
 */
public enum AccountType {
	SAVINGS("Savings"), CHECKING("Checking");

	private String stringRepresentation;

	private AccountType(String stringRepresentation) {
		this.stringRepresentation = stringRepresentation;
	}

	/**
	 * "Savings" for savings,
	 * "Checking" for checking.
	 */
	public String toString() {
		return stringRepresentation;
	};
}
